//
//  SWHomeController.m
//  新浪微博 OC版
//
//  Created by wszyxc on 16/7/18.
//  Copyright © 2016年 wszyxc. All rights reserved.
//

#import "SWHomeController.h"

#import "SWHomeVisitorView.h"

@interface SWHomeController ()

@end

@implementation SWHomeController

- (void)viewDidLoad {
    [super viewDidLoad];
  
    
    
    
}

//重写loadView的方法
- (void)loadView{
    
    if ([WZHUserDefaults WZHBoolForKey:@"isLogin"]) {
    
        [super loadView];
    }else{
        
        SWHomeVisitorView *visitorView = [SWHomeVisitorView homeVisitorView];
        
        self.view = visitorView;
        
    }
    
}




@end
